package com.mmall.service;/**
 * Created by 果果 on 2017/8/2.
 */

import com.mmall.common.ServerResponse;
import com.mmall.pojo.User;

/**
 * 用户模块service
 *
 * @author
 * @create 2017-08-02 22:16
 **/

public interface IUserService {

    ServerResponse<User> login(String username, String password);
    ServerResponse<String> register(User user);
    ServerResponse<String> checkValid(String str,String type);
    ServerResponse<String> SelectQuestion(String username);
    ServerResponse<String>  forgetCheckAnswer(String username,String question,String answer);
    ServerResponse<String> forgetResetPassword(String  username,String passwordNew,String forgetToken);
    ServerResponse<String>  resetPassword(String passwordOld,String passwordNew,User user);
    ServerResponse<User> updateUserInfo(User user);
    ServerResponse<User> get_Information(Integer id);
    ServerResponse checkAdminRole(User user);
}


